import RequestOption from "./request-option";
import Response from "./response";

/**
 * 钩子文件
 */
export = class Hook {
  public static typeof: Hook = new Hook();


  public beforeRequest: (option: typeof RequestOption.typeof) => void;
  public afterRequest: (req: typeof Response.typeof) => void;

  constructor(beforeRequest: (option: typeof RequestOption.typeof) => void = () => { }, afterRequest: (req: typeof Response.typeof) => void = () => { }) {
    this.beforeRequest = beforeRequest;
    this.afterRequest = afterRequest;
  }
}